package com.thkj.service.impl;

import com.thkj.entity.TblCameraRele;
import com.thkj.service.CamerasReleService;
import com.thkj.framework.base.BaseService;
import org.springframework.stereotype.Service;

@Service
public class CamerasReleServiceImpl extends BaseService implements CamerasReleService {


    @Override
    public void insertTblCamerasRele(TblCameraRele cameraRele) {
        dao.insert("com.thkj.mapper.TblCameraRele.insert", cameraRele);
    }

    @Override
    public Integer updateTblCamerasRele(TblCameraRele cameraRele) {
        return dao.update("com.thkj.mapper.TblCameraRele.update", cameraRele);
    }

    @Override
    public Integer deleteTblCamerasRele(String id) {
        return dao.delete("com.thkj.mapper.TblCameraRele.delete", id);
    }

    @Override
    public TblCameraRele getById(String id) {
        return dao.queryForObject("com.thkj.mapper.TblCameraRele.getById", id, TblCameraRele.class);
    }

    @Override
    public TblCameraRele getByIndividualId(String id) {
        return dao.queryForObject("com.thkj.mapper.TblCameraRele.getByIndividualId", id, TblCameraRele.class);
    }
}